package com.spring.custom_anno;

import org.springframework.web.bind.annotation.*;

@RestController
public class TestController {
	@RequestMapping(value = "/testCurrentUser", method = RequestMethod.POST, produces = "application/json", consumes = "application/json")
	public void test(@CurrentUser UserBean userBean) {
		String createdBy = userBean.getUsername();
		System.out.println(createdBy);
	}
}
